<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,viewport-fit=cover">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>shop</title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but shop doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <script src="https://cdn.bootcss.com/socket.io/2.2.0/socket.io.js"></script>
    <script src="jwt-decode.js"></script>
    <script>
    const socket = io('http://47.95.210.86:8777');
    if(localStorage.getItem("token")){
      const userInfo = jwt_decode(localStorage.getItem("token"));
      if (userInfo) {
        socket.emit('update', userInfo.id);
      }
    }
    </script>
  </body>
</html>
